package review.data.service;

import java.util.List;

import org.springframework.data.domain.Page;
import review.entity.Title;
import review.entity.model.TitleModel;
import review.entity.model.TitleTreeModel;

public interface TitleService {

  void addTitle(TitleModel data);

  void updateTitle(TitleModel data);

  void deleteTitle(String name);

  Page<TitleModel> findAll(int page, int size, Title title);

  List<TitleTreeModel> findAllModel();
}
